package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="ZJZF_ZHXX"
 *     
*/
public class ZjzfZhxx implements Serializable {

    /** identifier field */
    private String zhbh;

    /** persistent field */
    private String zhqc;

    /** persistent field */
    private String zhzh;

    /** persistent field */
    private String khyhqc;

    /** nullable persistent field */
    private String lxr;

    /** nullable persistent field */
    private String lxdh;

    /** persistent field */
    private String mjBz;

    /** persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String sx;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public ZjzfZhxx(String zhbh, String zhqc, String zhzh, String khyhqc, String lxr, String lxdh, String mjBz, String dwbh, String sx, String zt1, String zt2) {
        this.zhbh = zhbh;
        this.zhqc = zhqc;
        this.zhzh = zhzh;
        this.khyhqc = khyhqc;
        this.lxr = lxr;
        this.lxdh = lxdh;
        this.mjBz = mjBz;
        this.dwbh = dwbh;
        this.sx = sx;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public ZjzfZhxx() {
    }

    /** minimal constructor */
    public ZjzfZhxx(String zhbh, String zhqc, String zhzh, String khyhqc, String mjBz, String dwbh) {
        this.zhbh = zhbh;
        this.zhqc = zhqc;
        this.zhzh = zhzh;
        this.khyhqc = khyhqc;
        this.mjBz = mjBz;
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ZHBH"
     *         
     */
    public String getZhbh() {
        return this.zhbh;
    }

    public void setZhbh(String zhbh) {
        this.zhbh = zhbh;
    }

    /** 
     *            @hibernate.property
     *             column="ZHQC"
     *             length="200"
     *             not-null="true"
     *         
     */
    public String getZhqc() {
        return this.zhqc;
    }

    public void setZhqc(String zhqc) {
        this.zhqc = zhqc;
    }

    /** 
     *            @hibernate.property
     *             column="ZHZH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getZhzh() {
    	return this.zhzh;
    }

    public void setZhzh(String zhzh) {
        this.zhzh = zhzh;
    }

    /** 
     *            @hibernate.property
     *             column="KHYHQC"
     *             length="200"
     *             not-null="true"
     *         
     */
    public String getKhyhqc() {
        return this.khyhqc;
    }

    public void setKhyhqc(String khyhqc) {
        this.khyhqc = khyhqc;
    }

    /** 
     *            @hibernate.property
     *             column="LXR"
     *             length="30"
     *         
     */
    public String getLxr() {
        return this.lxr;
    }

    public void setLxr(String lxr) {
        this.lxr = lxr;
    }

    /** 
     *            @hibernate.property
     *             column="LXDH"
     *             length="50"
     *         
     */
    public String getLxdh() {
        return this.lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    /** 
     *            @hibernate.property
     *             column="MJ_BZ"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getMjBz() {
        return this.mjBz;
    }

    public void setMjBz(String mjBz) {
        this.mjBz = mjBz;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="SX"
     *             length="10"
     *         
     */
    public String getSx() {
        return this.sx;
    }

    public void setSx(String sx) {
        this.sx = sx;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("zhbh", getZhbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof ZjzfZhxx) ) return false;
        ZjzfZhxx castOther = (ZjzfZhxx) other;
        return new EqualsBuilder()
            .append(this.getZhbh(), castOther.getZhbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getZhbh())
            .toHashCode();
    }

}
